<?php
$data = array();
$sec_id = $_GET['sec_id'];
$room_id = $_GET['room_id'];

$insert = array(
	sec_id => $sec_id,
	room_id => $room_id
);

if($dbfunc->insert("tb_plan",$insert)){
	$data['success'] = true;
}
else{
	$data['success'] = false;
}

echo json_encode($data);